<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="javascripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="javascripts/jquery.qrcode.js"></script>
    <script type="text/javascript" src="javascripts/qrcode.js"></script>
    <style>
        .divcss5{width:76px;height:68px;border-left:1px solid #343434;border-top:1px solid #343434; border-right:1px solid #343434;border-bottom:1px solid #343434;float:left;padding-bottom: 20px}
    </style>
</head>
<body>
<%var i = 1%>
<%sns.forEach(function(sn){%>
<div class="divcss5">
    <div id="divId<%=i%>" style="padding-top: 2px;padding-left: 2px;padding-right: 0px;padding-bottom: 0px;border:0;magin:0">
    </div>
    <div style="padding-left: 13px;font-size:10px;border:0;magin:0"><%=sn.sn%></div>
    <script>
        jQuery('#divId<%=i%>').qrcode({
            text    : "http://pt.chuanghe.net/prod/<%=sn.sn%>",
            render   : "canvas",//设置渲染方式  canvas  table
            correctLevel    : QRErrorCorrectLevel.H,//纠错等级
            width : 70,
            height : 70
        })
    </script>
</div>
<%if(i%8==0){%>
<br/><br/><br/><br/><br/>
<%}%>
<% i++ %>
<%})%>

产品名称：<%=sns[0].pn%> 产品型号：<%=sns[0].tp%>
</body>
</html>
